import java.util.Arrays;

public class Test01 {
    public static void main(String[] args) {
        Integer[] arr={1,2,34,5,6};
       /* Arrays.sort(arr,(o1,o2)->o2-o1);*/
        Arrays.sort(arr,Test01::substration);
        System.out.println(Arrays.toString(arr));

    }
    public static int substration(int num1,int num2){
        return num1-num2;
    }
}
